const express = require("express");

const router = express.Router();

const fs = require("fs");

const path = require("path");



router.get('/login',(req,res)=>{


   res.sendFile(path.join(__dirname,'html/login.html'));

})
router.post('/tologin',(req,res)=>{
    console.log(req.body);
})
// router.get('/image/J.jpg',(req,res)=>{
//     let content = fs.readFileSync(path.join(__dirname,"image/J.jpg"));
//     res.send(content);
// })
module.exports = router;